function residuals= rangingEquation(p,bases,ranges)
    residuals=sqrt(sum((bases-repmat(p,size(bases,1),1)).^2,2))-ranges;

